package com.coursemanage.demo;

import java.util.Scanner;
import java.util.ArrayList;


public class Student {
    private String name;
    int courseNumber;
    Course[] a;
    Scanner scanner = new Scanner(System.in);

    public Student(){
    }

    public void setSName(String name){
        this.name = name;
    }

    public String getName(){
        return name;
    }

    public void setCourseNumber(int course_number){
        this.courseNumber = course_number;
    }

    public void setPer_course(){
        a = new Course[courseNumber];
        for(int i=0;i < a.length;i++){
            a[i] = new Course();
            a[i].setCName(scanner.next());
        }
    }
}